function cssTransform(el,attr,val){
    if(!el.transform){
        el.transform = {};
    }
    if(arguments.length >2) {
        el.transform[attr] = val;
        var sVal = "";
        for(var s in el.transform){
            switch (s){
                case "rotate":
                case "skewX":
                case "skewY":
                    sVal += s+"("+el.transform[s]+"deg) ";
                    break;
                case "translateX":
                case "translateY":
                    sVal += s+"("+el.transform[s]+"px) ";
                    break;
                case "scale":
                case "scaleX":
                case "scaleY":
                    sVal += s+"("+el.transform[s]+"px) ";
                    break;
            }
            el.style.WebkitTransform = el.style.transform = sVal;
        }
    }else{
        val = el.transform[attr];
        if(typeof val == "undefined"){
            if(attr == "scale" || attr == "scaleX" || attr == "scaleY"){
                val = 1;
            }else{
                val = 0;
            }
        }
       
        return val;
        
    }
}